{% extends "base.html" %}
{% import editor_macro(request) as editor %}
{% set action = '校正' if board else '创建' %}

{% block head %}
    {{ editor.head() }}
{% endblock head %}

{% block title %}公告板 {{ action }}{% endblock title %}
{% block subtitle %}公告板 {{ action }}{% endblock subtitle %}

{% block content %}
<form method="post" name="fboardform" id="fboardform" action="/admin/board_form_update"  onsubmit="return fboardform_submit(this)" enctype="multipart/form-data" autocomplete="off">
<input type="hidden" name="action" value="{{ 'u' if board.bo_table else 'w' }}">
<input type="hidden" name="token" value="">


<section id="anc_bo_basic">
    <h2 class="h2_frm">公告板默认设置</h2>
    <ul class="anchor">
    <li><a href="#anc_bo_basic">基本设置</a></li>
    <li><a href="#anc_bo_auth">设置权限</a></li>
    <li><a href="#anc_bo_function">功能设置</a></li>
    <li><a href="#anc_bo_design">设计/窗体</a></li>
    <li><a href="#anc_bo_point">点设置</a></li>
    <li><a href="#anc_bo_extra">额外字段</a></li>
</ul>
    <div class="tbl_frm01 tbl_wrap">
        <table>
        <caption>公告板默认设置</caption>
        <colgroup>
            <col class="grid_4">
            <col>
            <col class="grid_3">
        </colgroup>
        <tbody>
        <tr class="no_grpset">
            <th scope="row"><label for="bo_table">TABLE<strong class="blind">必不可少的</strong></label></th>
            <td colspan="2">
                {% if board.bo_table %}
                    <input type="hidden" name="bo_table" value="{{ board.bo_table }}">
                    <b>{{ board.bo_table }}</b>
                    <a href="/board/{{ board.bo_table }}" class="btn_frmline">去公告板</a>
                    <a href={{ "/admin/board_list"|set_query_params(request) }} class="btn_frmline">作为一个列表</a>
                {% else %}
                    <input type="text" name="bo_table" value="" id="bo_table" required  class="frm_input  required alnum_" maxlength="20">
                    英文字符, 编号, _ 仅可能 (无空格 20in-e)
                {% endif %}
            </td>
        </tr>
        <tr class="no_grpset">
            <th scope="row"><label for="gr_id">组<strong class="blind">必不可少的</strong></label></th>
            <td colspan="2">
                {{ get_group_select('gr_id', board.gr_id, 'required')|safe }}
                {% if board %}
                    <a href="javascript:document.location.href='/admin/board_list?sfl=gr_id&stx='+document.fboardform.gr_id.value;" class="btn_frmline">同组公告栏列表</a>
                {% endif %}
            </td>
        </tr>
        <tr class="no_grpset">
            <th scope="row"><label for="bo_subject">公告板标题<strong class="blind">必不可少的</strong></label></th>
            <td colspan="2">
                <input type="text" name="bo_subject" value="{{ board.bo_subject }}" id="bo_subject" required class="required frm_input" size="80" maxlength="120">
            </td>
        </tr>
        <tr class="no_grpset">
            <th scope="row"><label for="bo_mobile_subject">移动公告板标题</label></th>
            <td colspan="2">
                <span class="frm_info">如果手机上显示的公告板标题不同，请输入. 如果没有输入，将输出默认的公告板标题.</span>                
                <input type="text" name="bo_mobile_subject" value="{{ board.bo_mobile_subject }}" id="bo_mobile_subject" class="frm_input" size="80" maxlength="120">
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_device">访问设备</label></th>
            <td>
                <span class="frm_info">PC 区分移动和使用.</span>                
                <select id="bo_device" name="bo_device">
                    <option value="both" {{ get_selected(board.bo_device, 'both') }}>PC在移动和</option>
                    <option value="pc" {{ get_selected(board.bo_device, 'pc') }}>PC 专用</option>
                    <option value="mobile" {{ get_selected(board.bo_device, 'mobile') }}>仅移动设备</option>
                </select>
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_device" value="bo_device">
                <label for="chk_grp_device">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_device" value="bo_device">
                <label for="chk_all_device">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_category_list">分类</label></th>
            <td>
                <span class="frm_info">在分类和分类之间 | 请分开. (是: 提问|答案) 作为第一个 #不要进入. (是: #提问|#答案 [X])<br>分类名称中的一些特殊字符 ()/ 不能使用.</span>                
                <input type="text" name="bo_category_list" value="{{ board.bo_category_list }}" id="bo_category_list" class="frm_input" size="70">
                <input type="checkbox" name="bo_use_category" value="1" id="bo_use_category" {{ 'checked' if board.bo_use_category }}>
                <label for="bo_use_category">使用</label>
                <label for="bo_use_category">使用</label>
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_category_list" value="bo_category_list">
                <label for="chk_grp_category_list">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_category_list" value="bo_category_list">
                <label for="chk_all_category_list">完整的应用程序</label>
            </td>
        </tr>
                </tbody>
        </table>
    </div>
</section>

<section id="anc_bo_auth">
    <h2 class="h2_frm">设置公告板权限</h2>
    <ul class="anchor">
    <li><a href="#anc_bo_basic">基本设置</a></li>
    <li><a href="#anc_bo_auth">设置权限</a></li>
    <li><a href="#anc_bo_function">功能设置</a></li>
    <li><a href="#anc_bo_design">设计/窗体</a></li>
    <li><a href="#anc_bo_point">点设置</a></li>
    <li><a href="#anc_bo_extra">额外字段</a></li>
</ul>
    <div class="tbl_frm01 tbl_wrap">
        <table>
        <caption>设置公告板权限</caption>
        <colgroup>
            <col class="grid_4">
            <col>
            <col class="grid_3">
        </colgroup>
        <tbody>
        <tr>
            <th scope="row"><label for="bo_admin">公告板经理</label></th>
            <td>
                <input type="text" name="bo_admin" value="{{ board.bo_admin }}" id="bo_admin" class="frm_input" maxlength="20">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_admin" value="bo_admin">
                <label for="chk_grp_admin">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_admin" value="bo_admin">
                <label for="chk_all_admin">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_list_level">列表视图权限</label></th>
            <td>
                <span class="frm_info">权利 1Eun-bi会员, 2 这是一个理想的成员. 权威是 10 这是最高的.</span>                
                {{ get_member_level_select('bo_list_level', 1, 10, board.bo_list_level)|safe }}
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_list_level" value="bo_list_level">
                <label for="chk_grp_list_level">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_list_level" value="bo_list_level">
                <label for="chk_all_list_level">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_read_level">阅读权限</label></th>
            <td>
                {{ get_member_level_select('bo_read_level', 1, 10, board.bo_read_level)|safe }}
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_read_level" value="bo_read_level">
                <label for="chk_grp_read_level">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_read_level" value="bo_read_level">
                <label for="chk_all_read_level">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_write_level">写入权限</label></th>
            <td>
                {{ get_member_level_select('bo_write_level', 1, 10, board.bo_write_level)|safe }}
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_write_level" value="bo_write_level">
                <label for="chk_grp_write_level">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_write_level" value="bo_write_level">
                <label for="chk_all_write_level">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_reply_level">应答权限</label></th>
            <td>
                {{ get_member_level_select('bo_reply_level', 1, 10, board.bo_reply_level)|safe }}
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_reply_level" value="bo_reply_level">
                <label for="chk_grp_reply_level">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_reply_level" value="bo_reply_level">
                <label for="chk_all_reply_level">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_comment_level">评论写作权限</label></th>
            <td>
                {{ get_member_level_select('bo_comment_level', 1, 10, board.bo_comment_level)|safe }}
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_comment_level" value="bo_comment_level">
                <label for="chk_grp_comment_level">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_comment_level" value="bo_comment_level">
                <label for="chk_all_comment_level">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_link_level">链接权限</label></th>
            <td>
                {{ get_member_level_select('bo_link_level', 1, 10, board.bo_link_level)|safe }}
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_link_level" value="bo_link_level">
                <label for="chk_grp_link_level">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_link_level" value="bo_link_level">
                <label for="chk_all_link_level">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_upload_level">上传权限</label></th>
            <td>
                {{ get_member_level_select('bo_upload_level', 1, 10, board.bo_upload_level)|safe }}
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_upload_level" value="bo_upload_level">
                <label for="chk_grp_upload_level">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_upload_level" value="bo_upload_level">
                <label for="chk_all_upload_level">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_download_level">下载权限</label></th>
            <td>
                {{ get_member_level_select('bo_download_level', 1, 10, board.bo_download_level)|safe }}
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_download_level" value="bo_download_level">
                <label for="chk_grp_download_level">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_download_level" value="bo_download_level">
                <label for="chk_all_download_level">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_html_level">HTML 写入权限</label></th>
            <td>
                {{ get_member_level_select('bo_html_level', 1, 10, board.bo_html_level)|safe }}
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_html_level" value="bo_html_level">
                <label for="chk_grp_html_level">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_html_level" value="bo_html_level">
                <label for="chk_all_html_level">完整的应用程序</label>
            </td>
        </tr>
        </tbody>
        </table>
    </div>
</section>

<section id="anc_bo_function">
    <h2 class="h2_frm">公告板功能设置</h2>
    <ul class="anchor">
    <li><a href="#anc_bo_basic">基本设置</a></li>
    <li><a href="#anc_bo_auth">设置权限</a></li>
    <li><a href="#anc_bo_function">功能设置</a></li>
    <li><a href="#anc_bo_function">功能设置</a></li>
    <li><a href="#anc_bo_design">设计/窗体</a></li>
    <li><a href="#anc_bo_point">点设置</a></li>
    <li><a href="#anc_bo_extra">额外字段</a></li>
</ul>
    <div class="tbl_frm01 tbl_wrap">
        <table>
        <caption>公告板功能设置</caption>
        <colgroup>
            <col class="grid_4">
            <col>
            <col class="grid_3">
        </colgroup>
        <tbody>
        <tr>
            <th scope="row"><label for="bo_count_modify">无法更正原件<strong class="blind">必不可少的</strong></label></th>
            <td>
                 <span class="frm_info">如果评论数量超过设置数量，则无法更正原始帖子. 0如果设置为，则无论评论数如何，都可以对其进行更正.</span>
                 评论 <input type="text" name="bo_count_modify" value="{{ board.bo_count_modify }}" id="bo_count_modify" required class="required numeric frm_input" size="3">不能固定，如果你运行超过一只狗
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_count_modify" value="bo_count_modify">
                <label for="chk_grp_count_modify">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_count_modify" value="bo_count_modify">
                <label for="chk_all_count_modify">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_count_delete">一个字母不能删除<strong class="blind">必不可少的</strong></label></th>
            <td>
                评论 <input type="text" name="bo_count_delete" value="{{ board.bo_count_delete }}" id="bo_count_delete" required class="required numeric frm_input" size="3">如果你跑的不止一只狗，你不能删除它
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_count_delete" value="bo_count_delete">
                <label for="chk_grp_count_delete">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_count_delete" value="bo_count_delete">
                <label for="chk_all_count_delete">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_sideview">书面侧视图</label></th>
            <td>
                <input type="checkbox" name="bo_use_sideview" value="1" id="bo_use_sideview" {{ 'checked' if board.bo_use_sideview }}>
                使用 (作者单击时显示的图层菜单)
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_sideview" value="bo_use_sideview">
                <label for="chk_grp_use_sideview">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_sideview" value="bo_use_sideview">
                <label for="chk_all_use_sideview">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_secret">使用秘密写作</label></th>
            <td>
                <span class="frm_info">"复选框"写作时可以检查秘密写作. "无条件"写所有写的秘密. (Manager输出到复选框.) 它可能不会被应用取决于皮肤.</span>                
                <select id="bo_use_secret" name="bo_use_secret">
                    {% if board and board.bo_use_secret is not none %}
                        <option value="0" {{ get_selected(board.bo_use_secret, 0) }}>未使用</option>
                        <option value="1" {{ get_selected(board.bo_use_secret, 1) }}>复选框</option>
                        <option value="2" {{ get_selected(board.bo_use_secret, 2) }}>无条件</option>
                    {% else %}
                        <option value="0">未使用</option>
                        <option value="1">复选框</option>
                        <option value="2">无条件</option>
                    {% endif %}    
                </select>
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_secret" value="bo_use_secret">
                <label for="chk_grp_use_secret">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_secret" value="bo_use_secret">
                <label for="chk_all_use_secret">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_dhtml_editor">DHTML 使用设计器</label></th>
            <td>
                <span class="frm_info">写内容时 DHTML 设置是否将其用作编辑功能. 它可能不会被应用取决于皮肤.</span>
                <input type="checkbox" name="bo_use_dhtml_editor" value="1"  id="bo_use_dhtml_editor" {{ 'checked' if board.bo_use_dhtml_editor }}>
                使用
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_dhtml_editor" value="bo_use_dhtml_editor">
                <label for="chk_grp_use_dhtml_editor">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_dhtml_editor" value="bo_use_dhtml_editor">
                <label for="chk_all_use_dhtml_editor">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_select_editor">选择一个公告板设计师</label></th>
            <td>
                <span class="frm_info">设置编辑委员会使用. 它可能不会被应用取决于皮肤.</span>
                {{ get_editor_select('bo_select_editor', board.bo_select_editor)|safe }}
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_select_editor" value="bo_select_editor">
                <label for="chk_grp_select_editor">集团申请</label>
                <label for="chk_grp_select_editor">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_select_editor" value="bo_select_editor">
                <label for="chk_all_select_editor">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_rss_view">RSS 使用视图</label></th>
            <td>
                <span class="frm_info">您可以阅读非会员文章。 RSS 它必须是对可见的使用的检查 RSS 我们支持.</span>
                <input type="checkbox" name="bo_use_rss_view" value="1"  id="bo_use_rss_view" {{ 'checked' if board.bo_use_rss_view }}>
                使用
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_rss_view" value="bo_use_rss_view">
                <label for="chk_grp_use_rss_view">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_rss_view" value="bo_use_rss_view">
                <label for="chk_all_use_rss_view">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_good">推荐使用</label></th>
            <td>
                <input type="checkbox" name="bo_use_good" value="1"  id="bo_use_good" {{ 'checked' if board.bo_use_good }}>
                使用
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_good" value="bo_use_good">
                <label for="chk_grp_use_good">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_good" value="bo_use_good">
                <label for="chk_all_use_good">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_nogood">非推荐使用</label></th>
            <td>
                <input type="checkbox" name="bo_use_nogood" value="1" id="bo_use_nogood" {{ 'checked' if board.bo_use_nogood }}>
                使用
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_nogood" value="bo_use_nogood">
                <label for="chk_grp_use_nogood">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_nogood" value="bo_use_nogood">
                <label for="chk_all_use_nogood">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_name">姓名(真实姓名) 使用</label></th>
            <td>
                <input type="checkbox" name="bo_use_name" value="1" id="bo_use_name" {{ 'checked' if board.bo_use_name }}>
                使用
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_name" value="bo_use_name">
                <label for="chk_grp_use_name">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_name" value="bo_use_name">
                <label for="chk_all_use_name">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_signature">使用签名视图</label></th>
            <td>
                <input type="checkbox" name="bo_use_signature" value="1" id="bo_use_signature" {{ 'checked' if board.bo_use_signature }}>
                使用
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_signature" value="bo_use_signature">
                <label for="chk_grp_use_signature">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_signature" value="bo_use_signature">
                <label for="chk_all_use_signature">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_ip_view">IP 使用视图</label></th>
            <td>
                <input type="checkbox" name="bo_use_ip_view" value="1" id="bo_use_ip_view" {{ 'checked' if board.bo_use_ip_view }}>
                使用
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_ip_view" value="bo_use_ip_view">
                <label for="chk_grp_use_ip_view">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_ip_view" value="bo_use_ip_view">
                <label for="chk_all_use_ip_view">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_list_content">使用列表中的内容</label></th>
            <td>
                <span class="frm_info">除了列表中的公告板标题之外，这是在需要阅读内容时设置的选项。. 基地不使用.</span>                
                <input type="checkbox" name="bo_use_list_content" value="1" id="bo_use_list_content" {{ 'checked' if board.bo_use_list_content }}>
                使用 (使用时会变慢.)
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_list_content" value="bo_use_list_content">
                <label for="chk_grp_use_list_content">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_list_content" value="bo_use_list_content">
                <label for="chk_all_use_list_content">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_list_file">使用列表中的文件</label></th>
            <td>
                <span class="frm_info">如果您需要从列表中读取公告板附件，这是一个设置选项. 基地不使用.</span>
                <input type="checkbox" name="bo_use_list_file" value="1" id="bo_use_list_file" {{ 'checked' if board.bo_use_list_file }}>
                使用 (使用时会变慢.)
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_list_file" value="bo_use_list_file">
                <label for="chk_grp_use_list_file">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_list_file" value="bo_use_list_file">
                <label for="chk_all_use_list_file">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_list_view">使用完整列表视图</label></th>
            <td>
                <input type="checkbox" name="bo_use_list_view" value="1" id="bo_use_list_view" {{ 'checked' if board.bo_use_list_view }}>
                使用
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_list_view" value="bo_use_list_view">
                <label for="chk_grp_use_list_view">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_list_view" value="bo_use_list_view">
                <label for="chk_all_use_list_view">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_email">使用邮件发送</label></th>
            <td>
                <input type="checkbox" name="bo_use_email" value="1" id="bo_use_email" {{ 'checked' if board.bo_use_email }}>
                使用
                使用
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_email" value="bo_use_email">
                <label for="chk_grp_use_email">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_email" value="bo_use_email">
                <label for="chk_all_use_email">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_cert">使用您自己的确认</label></th>
            <td>
                <span class="frm_info">我们将允许您根据您的确认查找帖子.</span>                
                    <select id="bo_use_cert" name="bo_use_cert">
                    {{ option_selected('', board.bo_use_cert, '未使用')|safe }}
                    {% if config.cf_cert_use %}
                        {{ option_selected('cert', board.bo_use_cert, '所有确定的成员')|safe }}
                        {{ option_selected('adult', board.bo_use_cert, '仅确定成年会员')|safe }}
                    {% endif %}
                </select>
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_cert" value="bo_use_cert">
                <label for="chk_grp_use_cert">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_cert" value="bo_use_cert">
                <label for="chk_all_use_cert">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_upload_count">文件上传<strong class="blind">必不可少的</strong></label></th>
            <td>
                <span class="frm_info">每个帖子可以上传的最大文件数 (0 不使用文件附件)</span>
                <input type="text" name="bo_upload_count" value="{{ board.bo_upload_count }}" id="bo_upload_count" required class="required numeric frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_upload_count" value="bo_upload_count">
                <label for="chk_grp_upload_count">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_upload_count" value="bo_upload_count">
                <label for="chk_all_upload_count">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_upload_size">文件上传容量<strong class="blind">必不可少的</strong></label></th>
            <td>
                <span class="frm_info">最大值 2M 可以上传, 1 MB = 1,048,576 bytes</span>
                每个上传一个文件 <input type="text" name="bo_upload_size" value="{{ board.bo_upload_size }}" id="bo_upload_size" required class="required numeric frm_input"  size="10"> bytes 下面
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_upload_size" value="bo_upload_size">
                <label for="chk_grp_upload_size">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_upload_size" value="bo_upload_size">
                <label for="chk_all_upload_size">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_file_content">使用文件说明</label></th>
            <td>
                <input type="checkbox" name="bo_use_file_content" value="1" id="bo_use_file_content" {{ 'checked' if board.bo_use_file_content }}>使用
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_file_content" value="bo_use_file_content">
                <label for="chk_grp_use_file_content">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_file_content" value="bo_use_file_content">
                <label for="chk_all_use_file_content">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_write_min">最小书写限制</label></th>
            <td>
                <span class="frm_info">设置输入帖子时的最小字母数. 0或进入最高管理者, DHTML 使用设计器时未检查</span>
                <input type="text" name="bo_write_min" value="{{ board.bo_write_min }}" id="bo_write_min" class="numeric frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_write_min" value="bo_write_min">
                <label for="chk_grp_write_min">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_write_min" value="bo_write_min">
                <label for="chk_all_write_min">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_write_max">最大限制</label></th>
            <td>
                <span class="frm_info">设置输入帖子时的最大字母数. 0或进入最高管理者, DHTML 使用设计器时未检查</span>
                <input type="text" name="bo_write_max" value="{{ board.bo_write_max }}" id="bo_write_max" class="numeric frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_write_max" value="bo_write_max">
                <label for="chk_grp_write_max">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_write_max" value="bo_write_max">
                <label for="chk_all_write_max">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_comment_min">最小数量的评论限制</label></th>
            <td>
                <span class="frm_info">设置输入注释时的最小字母数. 0不检查您是否输入</span>
                <input type="text" name="bo_comment_min" value="{{ board.bo_comment_min }}" id="bo_comment_min" class="numeric frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_comment_min" value="bo_comment_min">
                <label for="chk_grp_comment_min">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_comment_min" value="bo_comment_min">
                <label for="chk_all_comment_min">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_comment_max">最大评论数有限</label></th>
            <td>
                <span class="frm_info">设置输入注释时的最大字母数. 0不检查您是否输入</span>
                <input type="text" name="bo_comment_max" value="{{ board.bo_comment_max }}" id="bo_comment_max" class="numeric frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_comment_max" value="bo_comment_max">
                <label for="chk_grp_comment_max">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_comment_max" value="bo_comment_max">
                <label for="chk_all_comment_max">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_sns">SNS 使用</label></th>
            <th scope="row"><label for="bo_use_sns">SNS 使用</label></th>
            <td>
                <span class="frm_info">当您检查使用社交网络服务时(SNS)您可以同时传播您的帖子或注册评论.<br>
                设置默认环境 SNS 您可以使用设置。.</span>
                <input type="checkbox" name="bo_use_sns" value="1" id="bo_use_sns" {{ 'checked' if board.bo_use_sns }}> 使用
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_sns" value="bo_use_sns">
                <label for="chk_grp_use_sns">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_sns" value="bo_use_sns">
                <label for="chk_all_use_sns">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_search">使用完整搜索</label></th>
            <td>
                <input type="checkbox" name="bo_use_search" value="1" id="bo_use_search" {{ 'checked' if board.bo_use_search }}>
                使用
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_search" value="bo_use_search">
                <label for="chk_grp_use_search">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_search" value="bo_use_search">
                <label for="chk_all_use_search">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_order">输出顺序</label></th>
            <td>
                <span class="frm_info">从低数量的公告板，我们将在您搜索或菜单时首先输出.</span>
                <input type="text" name="bo_order" value="{{ board.bo_order }}" id="bo_order" class="frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_order" value="bo_order">
                <label for="chk_grp_order">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_order" value="bo_order">
                <label for="chk_all_order">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_captcha">capcha的使用</label></th>
            <td>
                <span class="frm_info">当您检查时，我们将在编写时无条件使用capcha.( 成员 + 所有非会员 )<br>
                如果你不检查，你将只使用capcha非会员.</span>
                <input type="checkbox" name="bo_use_captcha" value="1" id="bo_use_captcha" {{ 'checked' if board.bo_use_captcha }}> 使用
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_use_captcha" value="bo_use_captcha">
                <label for="chk_grp_use_captcha">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_use_captcha" value="bo_use_captcha">
                <label for="chk_all_use_captcha">完整的应用程序</label>
            </td>
        </tr>
        </tbody>
        </table>
    </div>
</section>

<section id="anc_bo_design">
    <h2 class="h2_frm">公告板设计/窗体</h2>
    <ul class="anchor">
    <li><a href="#anc_bo_basic">基本设置</a></li>
    <li><a href="#anc_bo_auth">设置权限</a></li>
    <li><a href="#anc_bo_function">功能设置</a></li>
    <li><a href="#anc_bo_design">设计/窗体</a></li>
    <li><a href="#anc_bo_point">点设置</a></li>
    <li><a href="#anc_bo_extra">额外字段</a></li>
</ul>
    <div class="tbl_frm01 tbl_wrap">
        <table>
        <caption>公告板设计/窗体</caption>
        <colgroup>
            <col class="grid_4">
            <col>
            <col class="grid_3">
        </colgroup>
        <tbody>
            <tr>
            <th scope="row"><label for="bo_skin">皮肤目录<strong class="blind">必不可少的</strong></label></th>
            <td>
                {{ get_skin_select('board', 'bo_skin', board.bo_skin, attribute='required')|safe }}
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_skin" value="bo_skin">
                <label for="chk_grp_skin">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_skin" value="bo_skin">
                <label for="chk_all_skin">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_mobile_skin">移动电话<br>皮肤目录<strong class="blind">必不可少的</strong></label></th>
            <td>
                {{ get_skin_select('board', 'bo_mobile_skin', board.bo_mobile_skin, device='mobile')|safe }}
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_mobile_skin" value="bo_mobile_skin">
                <label for="chk_grp_mobile_skin">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_mobile_skin" value="bo_mobile_skin">
                <label for="chk_all_mobile_skin">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_content_head">热门内容</label></th>
            <td>
                {{ editor.body("bo_content_head", board.bo_content_head) }}
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_content_head" value="bo_content_head">
                <label for="chk_grp_content_head">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_content_head" value="bo_content_head">
                <label for="chk_all_content_head">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_content_tail">底部内容</label></th>
            <td>
                {{ editor.body("bo_content_tail", board.bo_content_tail) }}
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_content_tail" value="bo_content_tail">
                <label for="chk_grp_content_tail">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_content_tail" value="bo_content_tail">
                <label for="chk_all_content_tail">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_mobile_content_head">移动热门内容</label></th>
            <th scope="row"><label for="bo_mobile_content_head">移动热门内容</label></th>
            <td>
                {{ editor.body("bo_mobile_content_head", board.bo_mobile_content_head) }}
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_mobile_content_head" value="bo_mobile_content_head">
                <label for="chk_grp_mobile_content_head">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_mobile_content_head" value="bo_mobile_content_head">
                <label for="chk_all_mobile_content_head">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_mobile_content_tail">移动设备底部内容</label></th>
            <td>
                {{ editor.body("bo_mobile_content_tail", board.bo_mobile_content_tail) }}
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_mobile_content_tail" value="bo_mobile_content_tail">
                <label for="chk_grp_mobile_content_tail">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_mobile_content_tail" value="bo_mobile_content_tail">
                <label for="chk_all_mobile_content_tail">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_insert_content">写作基本内容</label></th>
            <td>
                <textarea id="bo_insert_content" name="bo_insert_content" rows="5">{{ board.bo_insert_content }}</textarea>
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_insert_content" value="bo_insert_content">
                <label for="chk_grp_insert_content">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_insert_content" value="bo_insert_content">
                <label for="chk_all_insert_content">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_subject_len">标题长度<strong class="blind">必不可少的</strong></label></th>
            <td>
                <span class="frm_info">列表中的标题字母数. 剪下的文字是 … 标记为</span>
                <input type="text" name="bo_subject_len" value="{{ board.bo_subject_len }}" id="bo_subject_len" required class="required numeric frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_subject_len" value="bo_subject_len">
                <label for="chk_grp_subject_len">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_subject_len" value="bo_subject_len">
                <label for="chk_all_subject_len">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_mobile_subject_len">移动标题长度<strong class="blind">必不可少的</strong></label></th>
            <td>
                <span class="frm_info">列表中的标题字母数. 剪下的文字是 … 标记为</span>
                <input type="text" name="bo_mobile_subject_len" value="{{ board.bo_mobile_subject_len }}" id="bo_mobile_subject_len" required class="required numeric frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_" value="bo_mobile_subject_len">
                <label for="chk_grp_mobile_subject_len">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_" value="bo_mobile_subject_len">
                <label for="chk_all_mobile_subject_len">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_page_rows">每页的列表编号<strong class="blind">必不可少的</strong></label></th>
            <td>
                <input type="text" name="bo_page_rows" value="{{ board.bo_page_rows }}" id="bo_page_rows" required class="required numeric frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_page_rows" value="bo_page_rows">
                <label for="chk_grp_page_rows">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_page_rows" value="bo_page_rows">
                <label for="chk_all_page_rows">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_mobile_page_rows">每个移动页面的列表编号<strong class="blind">必不可少的</strong></label></th>
            <td>
                <input type="text" name="bo_mobile_page_rows" value="{{ board.bo_mobile_page_rows }}" id="bo_mobile_page_rows" required class="required numeric frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_mobile_page_rows" value="bo_mobile_page_rows">
                <label for="chk_grp_mobile_page_rows">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_mobile_page_rows" value="bo_mobile_page_rows">
                <label for="chk_all_mobile_page_rows">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_gallery_cols">图库图像的数量<strong class="blind">必不可少的</strong></label></th>
            <td>
                <span class="frm_info">一个值，用于设置在图库类型的公告板列表中每行显示多少图像</span>
                <input type="text" name="bo_gallery_cols" value="{{ board.bo_gallery_cols }}" id="bo_gallery_cols" required class="required numeric frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_gallery_cols" value="bo_gallery_cols">
                <label for="chk_grp_gallery_cols">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_gallery_cols" value="bo_gallery_cols">
                <label for="chk_all_gallery_cols">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_gallery_width">图库图像宽度<strong class="blind">必不可少的</strong></label></th>
            <td>
                <span class="frm_info">设置图库型公告板列表中缩略图图像宽度的值</span>
                <input type="text" name="bo_gallery_width" value="{{ board.bo_gallery_width }}" id="bo_gallery_width" required class="required numeric frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_gallery_width" value="bo_gallery_width">
                <label for="chk_grp_gallery_width">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_gallery_width" value="bo_gallery_width">
                <label for="chk_all_gallery_width">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_gallery_height">图库图像高度<strong class="blind">必不可少的</strong></label></th>
            <td>
                <span class="frm_info">用于设置图库型公告板列表中缩略图图像高度的值</span>
                <input type="text" name="bo_gallery_height" value="{{ board.bo_gallery_height }}" id="bo_gallery_height" required class="required numeric frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_gallery_height" value="bo_gallery_height">
                <label for="chk_grp_gallery_height">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_gallery_height" value="bo_gallery_height">
                <label for="chk_all_gallery_height">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_mobile_gallery_width">移动电话<br>图库图像宽度<strong class="blind">必不可少的</strong></label></th>
            <td>
                <span class="frm_info">一个值，用于设置连接到移动设备时图库类型公告板列表中的缩略图图像的宽度</span>
                <input type="text" name="bo_mobile_gallery_width" value="{{ board.bo_mobile_gallery_width }}" id="bo_mobile_gallery_width" required class="required numeric frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_mobile_gallery_width" value="bo_mobile_gallery_width">
                <label for="chk_grp_mobile_gallery_width">集团申请</label>
                <label for="chk_grp_mobile_gallery_width">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_mobile_gallery_width" value="bo_mobile_gallery_width">
                <label for="chk_all_mobile_gallery_width">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_mobile_gallery_height">移动电话<br>图库图像高度<strong class="blind">必不可少的</strong></label></th>
            <td>
                <span class="frm_info">一个值，用于设置连接到移动设备时图库型公告板列表中缩略图的高度</span>
                <input type="text" name="bo_mobile_gallery_height" value="{{ board.bo_mobile_gallery_height }}" id="bo_mobile_gallery_height" required class="required numeric frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_mobile_gallery_height" value="bo_mobile_gallery_height">
                <label for="chk_grp_mobile_gallery_height">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_mobile_gallery_height" value="bo_mobile_gallery_height">
                <label for="chk_all_mobile_gallery_height">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_table_width">公告板宽度<strong class="blind">必不可少的</strong></label></th>
            <td>
                <span class="frm_info">100 以下 %</span>
                <input type="text" name="bo_table_width" value="{{ board.bo_table_width }}" id="bo_table_width" required class="required numeric frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_table_width" value="bo_table_width">
                <label for="chk_grp_table_width">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_table_width" value="bo_table_width">
                <label for="chk_all_table_width">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_image_width">图像宽度大小<strong class="blind">必不可少的</strong></label></th>
            <td>
                <span class="frm_info">从公告板输出的图像的宽度大小</span>
                <input type="text" name="bo_image_width" value="{{ board.bo_image_width }}" id="bo_image_width" required class="required numeric frm_input" size="4"> 像素
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_image_width" value="bo_image_width">
                <label for="chk_grp_image_width">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_image_width" value="bo_image_width">
                <label for="chk_all_image_width">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_new">新鹰图标<strong class="blind">必不可少的</strong></label></th>
            <td>
                <span class="frm_info">写作后 new 输出图像的时间. 0如果输入，则不输出图标.</span>
                <input type="text" name="bo_new" value="{{ board.bo_new }}" id="bo_new" required class="required numeric frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_new" value="bo_new">
                <label for="chk_grp_new">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_new" value="bo_new">
                <label for="chk_all_new">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_hot">流行的写作图标<strong class="blind">必不可少的</strong></label></th>
            <td>
                <span class="frm_info">如果分钟数大于设定值， hot 图像输出. 0如果输入，则不输出图标.</span>
                <input type="text" name="bo_hot" value="{{ board.bo_hot }}" id="bo_hot" required class="required numeric frm_input" size="4">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_hot" value="bo_hot">
                <label for="chk_grp_hot">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_hot" value="bo_hot">
                <label for="chk_all_hot">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_reply_order">答案</label></th>
            <td>
                <select id="bo_reply_order" name="bo_reply_order">
                    <option value="1" {{ 'selected' if board.bo_reply_order }}>平下来后苦涩的答案 (基本)</option>
                    <option value="0" {{ 'selected' if not board.bo_reply_order }}>Ping over稍后的书面答案</option>
                </select>
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_reply_order" value="bo_reply_order">
                <label for="chk_grp_reply_order">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_reply_order" value="bo_reply_order">
                <label for="chk_all_reply_order">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_sort_field">列表排序字段</label></th>
            <td>
                <span class="frm_info">在列表中选择默认用于排序的字段. "基本"如果您不使用它，它可能会变慢.</span>
                <select id="bo_sort_field" name="bo_sort_field">
                    <option value="" {{ 'selected' if board.bo_sort_field == '' }}>wr_num, wr_reply : 基本</option>
                    <option value="wr_datetime asc" {{ 'selected' if board.bo_sort_field == 'wr_datetime asc' }}>wr_datetime asc : 从以前的日期</option>
                    <option value="wr_datetime desc" {{ 'selected' if board.bo_sort_field == 'wr_datetime desc' }}>wr_datetime desc : 最近日期</option>
                    <option value="wr_hit asc, wr_num, wr_reply" {{ 'selected' if board.bo_sort_field == 'wr_hit asc, wr_num, wr_reply' }}>wr_hit asc : 从低点击率</option>
                    <option value="wr_hit desc, wr_num, wr_reply" {{ 'selected' if board.bo_sort_field == 'wr_hit desc, wr_num, wr_reply' }}>wr_hit desc : 从高命中</option>
                    <option value="wr_last asc" {{ 'selected' if board.bo_sort_field == 'wr_last asc' }}>wr_last asc : 从最近的一个</option>
                    <option value="wr_last desc" {{ 'selected' if board.bo_sort_field == 'wr_last desc' }}>wr_last desc : 从最近的写作最近</option>
                    <option value="wr_comment asc, wr_num, wr_reply" {{ 'selected' if board.bo_sort_field == 'wr_comment asc, wr_num, wr_reply' }}>wr_comment asc : 从较低的评论数</option>
                    <option value="wr_comment asc, wr_num, wr_reply" {{ 'selected' if board.bo_sort_field == 'wr_comment asc, wr_num, wr_reply' }}>wr_comment asc : 从较低的评论数</option>
                    <option value="wr_comment desc, wr_num, wr_reply" {{ 'selected' if board.bo_sort_field == 'wr_comment desc, wr_num, wr_reply' }}>wr_comment desc : 来自high的评论</option>
                    <option value="wr_good asc, wr_num, wr_reply" {{ 'selected' if board.bo_sort_field == 'wr_good asc, wr_num, wr_reply' }}>wr_good asc : 从低数量的建议</option>
                    <option value="wr_good desc, wr_num, wr_reply" {{ 'selected' if board.bo_sort_field == 'wr_good desc, wr_num, wr_reply' }}>wr_good desc : 从大量的建议</option>
                    <option value="wr_nogood asc, wr_num, wr_reply" {{ 'selected' if board.bo_sort_field == 'wr_nogood asc, wr_num, wr_reply' }}>wr_nogood asc : 不推荐从低</option>
                    <option value="wr_nogood desc, wr_num, wr_reply" {{ 'selected' if board.bo_sort_field == 'wr_nogood desc, wr_num, wr_reply' }}>wr_nogood desc : 不推荐从高</option>
                    <option value="wr_subject asc, wr_num, wr_reply" {{ 'selected' if board.bo_sort_field == 'wr_subject asc, wr_num, wr_reply' }}>wr_subject asc : 按标题顺序，</option>
                    <option value="wr_subject desc, wr_num, wr_reply" {{ 'selected' if board.bo_sort_field == 'wr_subject desc, wr_num, wr_reply' }}>wr_subject desc : 按标题顺序</option>
                    <option value="wr_name asc, wr_num, wr_reply" {{ 'selected' if board.bo_sort_field == 'wr_name asc, wr_num, wr_reply' }}>wr_name asc : 通过写作</option>
                    <option value="wr_name desc, wr_num, wr_reply" {{ 'selected' if board.bo_sort_field == 'wr_name desc, wr_num, wr_reply' }}>wr_name desc : 作者:</option>
                    <option value="ca_name asc, wr_num, wr_reply" {{ 'selected' if board.bo_sort_field == 'ca_name asc, wr_num, wr_reply' }}>ca_name asc : 分类名称按递增顺序排列</option>
                    <option value="ca_name desc, wr_num, wr_reply" {{ 'selected' if board.bo_sort_field == 'ca_name desc, wr_num, wr_reply' }}>ca_name desc : 分类名称按向下顺序排列</option>
                </select>
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_sort_field" value="bo_sort_field">
                <label for="chk_grp_sort_field">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_sort_field" value="bo_sort_field">
                <label for="chk_all_sort_field">完整的应用程序</label>
            </td>
        </tr>
        </tbody>
        </table>
    </div>
    {# <button type="button" class="get_theme_galc btn btn_02">获取主题图像设置</button> #}
</section>

<section id="anc_bo_point">
    <h2 class="h2_frm">设置公告板点</h2>
    <ul class="anchor">
    <li><a href="#anc_bo_basic">基本设置</a></li>
    <li><a href="#anc_bo_auth">设置权限</a></li>
    <li><a href="#anc_bo_function">功能设置</a></li>
    <li><a href="#anc_bo_design">设计/窗体</a></li>
    <li><a href="#anc_bo_point">点设置</a></li>
    <li><a href="#anc_bo_extra">额外字段</a></li>
</ul>
    <div class="tbl_frm01 tbl_wrap">
        <table>
        <caption>设置公告板点</caption>
        <colgroup>
            <col class="grid_4">
            <col>
            <col class="grid_3">
        </colgroup>
        <tbody>
        <tr class="no_grpset">
            <th scope="row"><label for="chk_grp_point">设置为默认值</label></th>
            <td colspan="2">
                <label for="chk_grp_point"><span class="frm_info">设置为在环境设置中输入的点</span></label>
                <input type="checkbox" name="chk_grp_point" id="chk_grp_point" onclick="set_point(this.form)">
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_read_point">读取点<strong class="blind">必不可少的</strong></label></th>
            <td>
                <input type="text" name="bo_read_point" value="{{ board.bo_read_point }}" id="bo_read_point" required class="required frm_input" size="5">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_read_point" value="bo_read_point">
                <label for="chk_grp_read_point">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_read_point" value="bo_read_point">
                <label for="chk_all_read_point">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_write_point">书写点<strong class="blind">必不可少的</strong></label></th>
            <td>
                <input type="text" name="bo_write_point" value="{{ board.bo_write_point }}" id="bo_write_point" required class="required frm_input" size="5">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_write_point" value="bo_write_point">
                <label for="chk_grp_write_point">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_write_point" value="bo_write_point">
                <label for="chk_all_write_point">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_comment_point">评论写作点<strong class="blind">必不可少的</strong></label></th>
            <td>
                <input type="text" name="bo_comment_point" value="{{ board.bo_comment_point }}" id="bo_comment_point" required class="required frm_input" size="5">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_comment_point" value="bo_comment_point">
                <label for="chk_grp_comment_point">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_comment_point" value="bo_comment_point">
                <label for="chk_all_comment_point">完整的应用程序</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_download_point">下载点<strong class="blind">必不可少的</strong></label></th>
            <td>
                <input type="text" name="bo_download_point" value="{{ board.bo_download_point }}" id="bo_download_point" required class="required frm_input" size="5">
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp[]" id="chk_grp_download_point" value="bo_download_point">
                <label for="chk_grp_download_point">集团申请</label>
                <input type="checkbox" name="chk_all[]" id="chk_all_download_point" value="bo_download_point">
                <label for="chk_all_download_point">完整的应用程序</label>

            </td>
        </tr>
        </tbody>
        </table>
    </div>
</section>

<section id="anc_bo_extra">
    <h2 class="h2_frm">设置公告板额外字段</h2>
    <ul class="anchor">
    <li><a href="#anc_bo_basic">基本设置</a></li>
    <li><a href="#anc_bo_auth">设置权限</a></li>
    <li><a href="#anc_bo_function">功能设置</a></li>
    <li><a href="#anc_bo_design">设计/窗体</a></li>
    <li><a href="#anc_bo_point">点设置</a></li>
    <li><a href="#anc_bo_extra">额外字段</a></li>
</ul>
    <div class="tbl_frm01 tbl_wrap">
        <table>
        <caption>设置公告板额外字段</caption>
        <caption>公告板 额外字段 设置</caption>
        <colgroup>
            <col class="grid_4">
            <col>
            <col class="grid_3">
        </colgroup>
        <tbody>
            {% for i in range(1, 11) %}
            <tr>
                <th scope="row">额外字段{{ i }}</th>
                <td class="td_extra">
                    <label for="bo_{{ i }}_subj">额外字段 {{ i }} 标题</label>
                    <input type="text" name="bo_{{ i }}_subj" id="bo_{{ i }}_subj" value="{{ getattr(board, 'bo_' ~ i ~ '_subj', '') }}" class="frm_input">
                    <label for="bo_{{ i }}">额外字段 {{ i }} 数值</label>
                    <input type="text" name="bo_{{ i }}" id="bo_{{ i }}" value="{{ getattr(board, 'bo_' ~ i, '') }}" class="frm_input extra-value-input">
                </td>
                <td class="td_grpset">
                    <input type="checkbox" name="chk_grp[]" id="chk_grp_{{ i }}" value="bo_{{ i }}">
                    <label for="chk_grp_{{ i }}">集团申请</label>
                    <input type="checkbox" name="chk_all[]" id="chk_all_{{ i }}" value="bo_{{ i }}">
                    <label for="chk_all_{{ i }}">完整的应用程序</label>
                </td>
            </tr>
            {% endfor %}
        </tbody>
        </table>
    </div>
</section>

<div class="btn_fixed_top">
    <a href="/admin/board_list" class="btn btn_02">列表</a>
    <input type="submit" value="检查" class="btn_submi btn btn_01" accesskey="s">
</div>
</form>

<script>
$(function(){
    $("#board_copy").click(function(){
        window.open(this.href, "win_board_copy", "left=10,top=10,width=500,height=400");
        return false;
    });
    /*
    $(".get_theme_galc").on("click", function() {
        if(!confirm("是否要应用当前主题公告板图像设置?"))
            return false;

        $.ajax({
            type: "POST",
            url: "./theme_config_load.php",
            cache: false,
            async: false,
            data: { type: "board" },
            dataType: "json",
            success: function(data) {
                if(data.error) {
                    alert(data.error);
                    return false;
                }

                var field = Array('bo_gallery_cols', 'bo_gallery_width', 'bo_gallery_height', 'bo_mobile_gallery_width', 'bo_mobile_gallery_height', 'bo_image_width');
                var count = field.length;
                var key;

                for(i=0; i<count; i++) {
                    key = field[i];

                    if(data[key] != undefined && data[key] != "")
                        $("input[name="+key+"]").val(data[key]);
                }
            }
        });
    });
    */
});

function board_copy(bo_table) {
    window.open("./board_copy.php?bo_table="+bo_table, "BoardCopy", "left=10,top=10,width=500,height=200");
}

function set_point(f) {
    if (f.chk_grp_point.checked) {
        f.bo_read_point.value = "{{ config.cf_read_point }}";
        f.bo_write_point.value = "{{ config.cf_write_point }}";
        f.bo_comment_point.value = "{{ config.cf_comment_point }}";
        f.bo_download_point.value = "{{ config.cf_download_point }}";
    } else {
        f.bo_read_point.value     = f.bo_read_point.defaultValue;
        f.bo_write_point.value    = f.bo_write_point.defaultValue;
        f.bo_comment_point.value  = f.bo_comment_point.defaultValue;
        f.bo_download_point.value = f.bo_download_point.defaultValue;
    }
}

function fboardform_submit(f)
{
    // TODO: 它允许您设置其他禁止的单词。.
    var banned_array;

    // 如果公告的名称是禁止使用的单词，
    if( (typeof banned_array != 'undefined') && jQuery.inArray(f.bo_table.value, banned_array) !== -1 ){
        alert("输入板 TABLE你不能使用一个人. 请输入其他名称.");
        return false;
    }

    if (parseInt(f.bo_count_modify.value) < 0) {
        alert("无法在原始文件中固定的注释数 0 您必须至少输入.");
        f.bo_count_modify.focus();
        return false;
    }

    if (parseInt(f.bo_count_delete.value) < 1) {
        alert("无法删除的评论数 1 您必须至少输入.");
        f.bo_count_delete.focus();
        return false;
    }

    f.token.value = generate_token();

    return true;
}
</script>
{% endblock content %}